package cn.demoncat.util.io.entity;

import java.io.PrintWriter;

import cn.demoncat.util.lang.LogLineHtmlUtil;

/**
 * PrintWriter行读取器
 * 
 * 功能：将读取到的行，拼接为Html的p标签写出到PrintWriter
 * 
 * @author 延晓磊
 *
 * @since 2019年7月1日
 */
public class WriteHtmlLineReadCallback extends WriteLineReadCallback {

	/**
	 * 创建
	 */
	public WriteHtmlLineReadCallback(PrintWriter writer) {
		super(writer);
	}

	@Override
	public void readImpl(String line) {
		super.readImpl(LogLineHtmlUtil.getLine(line));
	}

	@Override
	public void readErrorImpl(String line) {
		super.readErrorImpl(LogLineHtmlUtil.getErrorLine(line));
	}

	@Override
	public void readWarnImpl(String line) {
		super.readWarnImpl(LogLineHtmlUtil.getWarnLine(line));
	}
}
